package com.company.card_service.model;

import com.baomidou.mybatisplus.annotation.*;

import java.beans.Transient;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:06
 */
@Data
@TableName("employee")
@ApiModel(value = "Employee对象", description = "")
public class Employee {

    @ApiModelProperty("员工id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty("员工名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("员工地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("微信号")
    @TableField("wx_number")
    private String wxNumber;

    @ApiModelProperty("微信二维码")
    @TableField("wx_code")
    private String wxCode;

    @ApiModelProperty("职位")
    @TableField("profession")
    private String profession;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("创建人")
    @TableField("creater_id")
    private Integer createrId;

    @ApiModelProperty("逻辑删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;




}
